import request from '@/utils/request'
//发现列表
export function discover(data) {
    return request({
      url: 'discover',
      method: 'get',
      params: data,
      headers: {
        showLoading: true
      }
    })
  }
//发现新增
export function discoverCreate(data) {
    return request({
      url: 'discover/create',
      method: 'post',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//发现详情
export function discoverRead(data) {
    return request({
      url: 'discover/read',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }
//发现编辑
export function discoverUpdate(data) {
    return request({
      url: 'discover/update',
      method: 'put',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//发现删除
export function discoverDelete(data) {
    return request({
      url: 'discover/delete',
      method: 'delete',
      data,
      headers: {
        showLoading: false
      }
    })
  }
//发现刷新
export function discoverRefresh(data) {
    return request({
      url: 'discover/refresh',
      method: 'put',
      data,
      headers: {
        showLoading: false
      }
    })
  }






